package com.example.dryyzx.encapsulation;

import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;

public class ApprovalGoOutRecordReturn {

    int totalPage;
    ArrayList<ApprovalGoOutRecord> approvalGoOutRecords ;

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }




    public ArrayList<ApprovalGoOutRecord> getApprovalGoOutRecords() {
        return approvalGoOutRecords;
    }

    public void setApprovalGoOutRecords(ArrayList<ApprovalGoOutRecord> approvalGoOutRecords) {
        this.approvalGoOutRecords = approvalGoOutRecords;
    }

    public void addData(ApprovalGoOutRecord approvalGoOutRecord){
        this.approvalGoOutRecords.add(approvalGoOutRecord);
    }

    public ApprovalGoOutRecordReturn(){
        approvalGoOutRecords = new ArrayList<>();
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }


}
